export interface tableObj {
  id: number;
  logoUrl: string | null;
  tmName: string;
}
export type ArrayTableObj = tableObj[];
export interface tableType {
  data: tableObj[];
}
export interface tableTypePage {
  records: ArrayTableObj;
  total: number;
  size: number;
  current: number;
  searchCount: boolean;
  pages: number;
}
export interface category1 {
  id: number;
  name: string;
}
export type ArrayCategory1 = category1[];
export interface category2 {
  id: number;
  name: string;
  category1Id: number;
}
export type ArrayCategory2 = category2[];
export interface category3 {
  id: number;
  name: string;
  category2Id: number;
}
export type ArrayCategory3 = category3[];

export interface productType {
  id: number | undefined;
  attrName: string;
  categoryId: number | undefined;
  categoryLevel: number | undefined;
  attrValueList: ArrayValueList;
}
export type ArrayValueList = objValueList[];
export interface objValueList {
  id: number | undefined;
  valueName: string;
  attrId: number | undefined;
}
export interface productIdType {
  category1Id: number;
  category2Id: number;
  category3Id: number;
}

export interface addAttr {
  attrName: string;
  attrValueList: [
    {
      attrId: undefined;
      valueName: string;
    }
  ];
  categoryId: number;
  categoryLevel: number;
  id?: number;
}
interface objSpuType {
  id: number;
  spuName: string;
  description: string;
  category3Id: number;
  tmId: null;
  spuSaleAttrList: null;
  spuImageList: null;
}
export type ArrayObjSpu = objSpuType[];
export interface spuType {
  records: ArrayObjSpu;
  total: number;
  size: number;
  current: number;
  searchCount: boolean;
  pages: number;
}
export interface salesObj {
  id: number;
  name: string;
}
